import React, {PureComponent} from 'react';
import { withRouter } from "../hoc";

class User extends PureComponent {
  render() {
    const { router } =  this.props
    const { query } = router;
    return (
        <div>
          <h2>User</h2>
          <p>{query.name} - {query.age}</p>
        </div>
    );
  }
}

export default withRouter(User);